import { createRouter, createWebHistory } from 'vue-router'
import AppContent from '../components/AppContent.vue'
import ProductDetail from '../components/ProductDetail.vue'
import Mrxp from '../components/Mrxp.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: AppContent
  },
  {
    path: '/product/detail',
    name: 'ProductDetail',
    component: ProductDetail
  },
  {
    path: '/new-products',
    name: 'NewProducts',
    component: Mrxp
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router